<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

 <div class="row">
	<div class="col-sm-6">
		<div id="sample-table-2_info" class="dataTables_info">
			显示 第${pageList.begin}条 到 第 <span id="end">${pageList.end}</span> 条数据
			| 共 <span id="totalcount">${pageList.totalcount}</span> 条数据
			<s:select list="{5,10,20}" name="baseQuery.pageSize"
				onchange="$('#domainForm').submit();" />
			<s:textfield id="pageNo" name="baseQuery.currentPage"
				value="%{pageList.currentPage}" size="1" />
			<button class="btn btn-warning btn-xs">跳转</button>

		</div>
	</div>
	<div class="col-sm-6">
		<div class="dataTables_paginate paging_bootstrap">
			<ul class="pagination">${pageList.page}
			</ul>
		</div>
	</div>

	<script type="text/javascript">
		function go(no) {
			$('#pageNo').val(no);
			$('#domainForm').submit();
		}
	</script>

	<script type="text/javascript">
		var a;
		// 键盘事件按下
		$("#pageNo").keydown(function(event) {
			a = $('#pageNo').val();
		});

		$("#pageNo").keyup(function(event) {
			var v = event.keyCode;
			// 48到57代表0-9的数字，键盘事件松开，判断如果不是数字则设置为以前的数字
			if (v<48 || v>57) {
				// ascll码中8代表删除键
				if (v != 8) {
					$("#pageNo").val(a);
				}
			}
		});
	</script>


</div>